.class public Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;
.super Lcom/brixd/niceapp/callback/BaseDetailShareCallback;
.source "NiceGameDetailShareCallback.java"


# instance fields
.field private mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

.field private mContext:Landroid/content/Context;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/brixd/niceapp/model/BaseAppModel;)V
    .registers 3
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "appModel"    # Lcom/brixd/niceapp/model/BaseAppModel;

    .prologue
    .line 31
    invoke-direct {p0, p1}, Lcom/brixd/niceapp/callback/BaseDetailShareCallback;-><init>(Landroid/content/Context;)V

    .line 32
    iput-object p1, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mContext:Landroid/content/Context;

    .line 33
    iput-object p2, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    .line 34
    return-void
.end method


# virtual methods
.method public onShare(Lcn/sharesdk/framework/Platform;Lcn/sharesdk/framework/Platform$ShareParams;)V
    .registers 15
    .param p1, "platform"    # Lcn/sharesdk/framework/Platform;
    .param p2, "paramsToShare"    # Lcn/sharesdk/framework/Platform$ShareParams;

    .prologue
    .line 38
    invoke-virtual {p2}, Lcn/sharesdk/framework/Platform$ShareParams;->getText()Ljava/lang/String;

    move-result-object v6

    .line 39
    .local v6, "shareStr":Ljava/lang/String;
    const-string v8, "#\u6700\u7f8e\u5e94\u7528#"

    .line 41
    .local v8, "theme":Ljava/lang/String;
    sget-object v9, Lcn/sharesdk/sina/weibo/SinaWeibo;->NAME:Ljava/lang/String;

    invoke-virtual {p1}, Lcn/sharesdk/framework/Platform;->getName()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_a5

    .line 42
    const-string v9, "NiceGameSocialShareSinaWeibo"

    iget-object v10, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v10}, Lcom/brixd/niceapp/model/BaseAppModel;->getTitle()Ljava/lang/String;

    move-result-object v10

    iget-object v11, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v11}, Lcom/brixd/niceapp/model/BaseAppModel;->getId()I

    move-result v11

    invoke-virtual {p0, v9, v10, v11}, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->traceEvent(Ljava/lang/String;Ljava/lang/String;I)V

    .line 44
    invoke-virtual {p0, v8}, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->getAcceptSinaWeiboSize(Ljava/lang/String;)I

    move-result v1

    .line 45
    .local v1, "acceptSinaWeiboSize":I
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v10, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v10}, Lcom/brixd/niceapp/model/BaseAppModel;->getTitle()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "--"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v10, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v10}, Lcom/brixd/niceapp/model/BaseAppModel;->getSubTitle()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "\u3002"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    .line 47
    invoke-virtual {v6}, Ljava/lang/String;->length()I

    move-result v9

    if-le v9, v1, :cond_74

    .line 48
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    const/4 v10, 0x0

    add-int/lit8 v11, v1, -0x3

    invoke-virtual {v6, v10, v11}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "..."

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    .line 51
    :cond_74
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v9, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, " "

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "@\u6700\u7f8e\u5e94\u7528\u5b98\u65b9\u5fae\u535a "

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v10, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v10}, Lcom/brixd/niceapp/model/BaseAppModel;->getTitle()Ljava/lang/String;

    move-result-object v10

    const-string v11, "weibo"

    invoke-static {v10, v11}, Lcom/brixd/niceapp/util/ShareUtils;->getShareUrl(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    .line 115
    .end local v1    # "acceptSinaWeiboSize":I
    :cond_a1
    :goto_a1
    invoke-virtual {p2, v6}, Lcn/sharesdk/framework/Platform$ShareParams;->setText(Ljava/lang/String;)V

    .line 116
    return-void

    .line 53
    :cond_a5
    sget-object v9, Lcn/sharesdk/tencent/weibo/TencentWeibo;->NAME:Ljava/lang/String;

    invoke-virtual {p1}, Lcn/sharesdk/framework/Platform;->getName()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_142

    .line 54
    const-string v9, "NiceGameSocialShareTencentWeibo"

    iget-object v10, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v10}, Lcom/brixd/niceapp/model/BaseAppModel;->getTitle()Ljava/lang/String;

    move-result-object v10

    iget-object v11, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v11}, Lcom/brixd/niceapp/model/BaseAppModel;->getId()I

    move-result v11

    invoke-virtual {p0, v9, v10, v11}, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->traceEvent(Ljava/lang/String;Ljava/lang/String;I)V

    .line 56
    invoke-virtual {p0, v8}, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->getAcceptTxWeiboSize(Ljava/lang/String;)I

    move-result v2

    .line 57
    .local v2, "acceptTxWeiboSize":I
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v10, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v10}, Lcom/brixd/niceapp/model/BaseAppModel;->getTitle()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "--"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v10, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v10}, Lcom/brixd/niceapp/model/BaseAppModel;->getSubTitle()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "\u3002"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    .line 59
    invoke-virtual {v6}, Ljava/lang/String;->length()I

    move-result v9

    if-le v9, v2, :cond_113

    .line 60
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    const/4 v10, 0x0

    add-int/lit8 v11, v2, -0x3

    invoke-virtual {v6, v10, v11}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "..."

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    .line 63
    :cond_113
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v9, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, " "

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "@nice-app "

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v10, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v10}, Lcom/brixd/niceapp/model/BaseAppModel;->getTitle()Ljava/lang/String;

    move-result-object v10

    const-string v11, "txweibo"

    invoke-static {v10, v11}, Lcom/brixd/niceapp/util/ShareUtils;->getShareUrl(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    .line 65
    goto/16 :goto_a1

    .end local v2    # "acceptTxWeiboSize":I
    :cond_142
    sget-object v9, Lcn/sharesdk/tencent/qzone/QZone;->NAME:Ljava/lang/String;

    invoke-virtual {p1}, Lcn/sharesdk/framework/Platform;->getName()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_1d8

    .line 66
    const-string v9, "NiceGameSocialShareQZone"

    iget-object v10, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v10}, Lcom/brixd/niceapp/model/BaseAppModel;->getTitle()Ljava/lang/String;

    move-result-object v10

    iget-object v11, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v11}, Lcom/brixd/niceapp/model/BaseAppModel;->getId()I

    move-result v11

    invoke-virtual {p0, v9, v10, v11}, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->traceEvent(Ljava/lang/String;Ljava/lang/String;I)V

    .line 68
    iget-object v9, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v9}, Lcom/brixd/niceapp/model/BaseAppModel;->getTitle()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p2, v9}, Lcn/sharesdk/framework/Platform$ShareParams;->setTitle(Ljava/lang/String;)V

    .line 69
    iget-object v9, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v9}, Lcom/brixd/niceapp/model/BaseAppModel;->getTitle()Ljava/lang/String;

    move-result-object v9

    const-string v10, "qzone"

    invoke-static {v9, v10}, Lcom/brixd/niceapp/util/ShareUtils;->getShareUrl(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p2, v9}, Lcn/sharesdk/framework/Platform$ShareParams;->setTitleUrl(Ljava/lang/String;)V

    .line 70
    iget-object v9, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mContext:Landroid/content/Context;

    const v10, 0x7f0c0011

    invoke-virtual {v9, v10}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p2, v9}, Lcn/sharesdk/framework/Platform$ShareParams;->setSite(Ljava/lang/String;)V

    .line 71
    iget-object v9, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v9}, Lcom/brixd/niceapp/model/BaseAppModel;->getTitle()Ljava/lang/String;

    move-result-object v9

    const-string v10, "qzone"

    invoke-static {v9, v10}, Lcom/brixd/niceapp/util/ShareUtils;->getShareUrl(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p2, v9}, Lcn/sharesdk/framework/Platform$ShareParams;->setSiteUrl(Ljava/lang/String;)V

    .line 72
    iget-object v9, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v9}, Lcom/brixd/niceapp/model/BaseAppModel;->getCoverImageUrl()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p2, v9}, Lcn/sharesdk/framework/Platform$ShareParams;->setImageUrl(Ljava/lang/String;)V

    .line 74
    invoke-virtual {p0, v8}, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->getAcceptQZoneSize(Ljava/lang/String;)I

    move-result v0

    .line 75
    .local v0, "acceptQZoneSize":I
    invoke-virtual {v6}, Ljava/lang/String;->length()I

    move-result v9

    if-le v9, v0, :cond_1bf

    .line 76
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    const/4 v10, 0x0

    add-int/lit8 v11, v0, -0x3

    invoke-virtual {v6, v10, v11}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "..."

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    .line 79
    :cond_1bf
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v9, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, " "

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    .line 81
    goto/16 :goto_a1

    .end local v0    # "acceptQZoneSize":I
    :cond_1d8
    sget-object v9, Lcn/sharesdk/wechat/friends/Wechat;->NAME:Ljava/lang/String;

    invoke-virtual {p1}, Lcn/sharesdk/framework/Platform;->getName()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_213

    .line 82
    const-string v9, "NiceGameSocialShareWechat"

    iget-object v10, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v10}, Lcom/brixd/niceapp/model/BaseAppModel;->getTitle()Ljava/lang/String;

    move-result-object v10

    iget-object v11, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v11}, Lcom/brixd/niceapp/model/BaseAppModel;->getId()I

    move-result v11

    invoke-virtual {p0, v9, v10, v11}, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->traceEvent(Ljava/lang/String;Ljava/lang/String;I)V

    .line 84
    iget-object v9, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v9}, Lcom/brixd/niceapp/model/BaseAppModel;->getIconUrl()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p2, v9}, Lcn/sharesdk/framework/Platform$ShareParams;->setImageUrl(Ljava/lang/String;)V

    .line 85
    const/4 v9, 0x0

    invoke-virtual {p2, v9}, Lcn/sharesdk/framework/Platform$ShareParams;->setImagePath(Ljava/lang/String;)V

    .line 86
    iget-object v9, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v9}, Lcom/brixd/niceapp/model/BaseAppModel;->getTitle()Ljava/lang/String;

    move-result-object v9

    const-string v10, "weixin"

    invoke-static {v9, v10}, Lcom/brixd/niceapp/util/ShareUtils;->getShareUrl(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p2, v9}, Lcn/sharesdk/framework/Platform$ShareParams;->setUrl(Ljava/lang/String;)V

    goto/16 :goto_a1

    .line 87
    :cond_213
    sget-object v9, Lcn/sharesdk/wechat/moments/WechatMoments;->NAME:Ljava/lang/String;

    invoke-virtual {p1}, Lcn/sharesdk/framework/Platform;->getName()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_24e

    .line 88
    const-string v9, "NiceGameSocialShareWechatMoments"

    iget-object v10, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v10}, Lcom/brixd/niceapp/model/BaseAppModel;->getTitle()Ljava/lang/String;

    move-result-object v10

    iget-object v11, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v11}, Lcom/brixd/niceapp/model/BaseAppModel;->getId()I

    move-result v11

    invoke-virtual {p0, v9, v10, v11}, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->traceEvent(Ljava/lang/String;Ljava/lang/String;I)V

    .line 90
    iget-object v9, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v9}, Lcom/brixd/niceapp/model/BaseAppModel;->getIconUrl()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p2, v9}, Lcn/sharesdk/framework/Platform$ShareParams;->setImageUrl(Ljava/lang/String;)V

    .line 91
    const/4 v9, 0x0

    invoke-virtual {p2, v9}, Lcn/sharesdk/framework/Platform$ShareParams;->setImagePath(Ljava/lang/String;)V

    .line 92
    iget-object v9, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v9}, Lcom/brixd/niceapp/model/BaseAppModel;->getTitle()Ljava/lang/String;

    move-result-object v9

    const-string v10, "weixin_quan"

    invoke-static {v9, v10}, Lcom/brixd/niceapp/util/ShareUtils;->getShareUrl(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p2, v9}, Lcn/sharesdk/framework/Platform$ShareParams;->setUrl(Ljava/lang/String;)V

    goto/16 :goto_a1

    .line 93
    :cond_24e
    sget-object v9, Lcn/sharesdk/evernote/Evernote;->NAME:Ljava/lang/String;

    invoke-virtual {p1}, Lcn/sharesdk/framework/Platform;->getName()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_a1

    .line 94
    const-string v9, "NiceGameSocialShareEvernote"

    iget-object v10, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v10}, Lcom/brixd/niceapp/model/BaseAppModel;->getTitle()Ljava/lang/String;

    move-result-object v10

    iget-object v11, p0, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v11}, Lcom/brixd/niceapp/model/BaseAppModel;->getId()I

    move-result v11

    invoke-virtual {p0, v9, v10, v11}, Lcom/brixd/niceapp/callback/NiceGameDetailShareCallback;->traceEvent(Ljava/lang/String;Ljava/lang/String;I)V

    .line 96
    invoke-virtual {p2}, Lcn/sharesdk/framework/Platform$ShareParams;->getImagePath()Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v9

    if-nez v9, :cond_a1

    .line 98
    invoke-static {}, Lcom/brixd/niceapp/application/NiceAppApplication;->getAppBaseDirName()Ljava/lang/String;

    move-result-object v3

    .line 99
    .local v3, "baseCacheLocation":Ljava/lang/String;
    new-instance v7, Ljava/io/File;

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v9, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    sget-object v10, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "temp"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-direct {v7, v9}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 100
    .local v7, "tempDir":Ljava/io/File;
    invoke-virtual {v7}, Ljava/io/File;->exists()Z

    move-result v9

    if-nez v9, :cond_2a0

    .line 101
    invoke-virtual {v7}, Ljava/io/File;->mkdirs()Z

    .line 105
    :cond_2a0
    :try_start_2a0
    const-string v9, "img_"

    const-string v10, ".jpg"

    invoke-static {v9, v10, v7}, Ljava/io/File;->createTempFile(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;

    move-result-object v4

    .line 106
    .local v4, "destFile":Ljava/io/File;
    new-instance v9, Ljava/io/File;

    invoke-virtual {p2}, Lcn/sharesdk/framework/Platform$ShareParams;->getImagePath()Ljava/lang/String;

    move-result-object v10

    invoke-direct {v9, v10}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-static {v9, v4}, Lcom/zuiapps/suite/utils/file/FileUtil;->copyFile(Ljava/io/File;Ljava/io/File;)Z

    .line 107
    invoke-virtual {v4}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p2, v9}, Lcn/sharesdk/framework/Platform$ShareParams;->setImagePath(Ljava/lang/String;)V
    :try_end_2bb
    .catch Ljava/lang/Exception; {:try_start_2a0 .. :try_end_2bb} :catch_2bd

    goto/16 :goto_a1

    .line 108
    .end local v4    # "destFile":Ljava/io/File;
    :catch_2bd
    move-exception v5

    .line 109
    .local v5, "e":Ljava/lang/Exception;
    invoke-virtual {v5}, Ljava/lang/Exception;->printStackTrace()V

    goto/16 :goto_a1
.end method
